package com.xxh.myapp.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * (Dept)表实体类
 *
 * @author makejava
 * @since 2020-05-01 19:47:55
 */
@SuppressWarnings("serial")
public class Dept extends Model<Dept> {

    @TableId
    private Integer majorId;
    
    private String deptname;


    public Integer getMajorId() {
        return majorId;
    }

    public void setMajorId(Integer majorId) {
        this.majorId = majorId;
    }

    public String getDeptname() {
        return deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.majorId;
    }
    }